﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WumpusTest
{
	class Player
	{
		private string name;
		private int arrows = 3, coins = 10, turns = 0, score = 0;

		public Player() { }

		public Player(String n, int a, int c, int t, int s)
		{
			name = n;
			arrows = a;
			coins = c;
			turns = t;
			score = s;
		}

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		public int Arrows
		{
			get { return arrows; }
			set { arrows = value; }
		}

		public int Coins
		{
			get { return coins; }
			set { coins = value; }
		}

		public int Turns
		{
			get { return turns; }
			set { turns = value; }
		}

		public int Score
		{
			get { return score; }
			set { score = value; }
		}

		public void PlayerMove()
		{
			turns++;
			coins++;
		}

		public void ShootArrow()
		{
			arrows--;
		}


		public void PurchaseArrows()
		{
			arrows += 2;
		}

		public void AnswerTrivia()
		{
			coins--;
		}

		public void CalculateScore()
		{
			score = 100 - turns + coins + (10 * arrows);
		}

	}
}
